import type { App } from 'vue'
import { createPinia } from 'pinia'
import router from '@renderer/router'

const store = createPinia()

// 全局注册 store
export function setupStore(app: App<Element>) {
  app.use(store)
  app.use(router)
}
export * from './modules/user'
export { store }
